from django.db import models

# Create your models here.
class Book(models.Model):
    name = models.CharField(max_length=20)
    author = models.CharField(max_length=20)
    pub_time = models.DateTimeField()
    price = models.FloatField(default=0.0)

    class Meta:
        db_table = "book_table"
        ordering = ['-pub_time','name']
